//调用接口配置文件
import { request,verifyToken } from 'config/request'
import config from 'config/config'
// 定义接口

//获取区域项目
export async function getProjectList(params) {
  return request({
      url: `zituo-admin/a/sys/baseOrg/projectList`,
      method: 'GET',
      data: params,
  });
};

  //保存
export async function submit(params) {
  return request({
      url: `zituo-admin/a/platform/teamManager/save`,
      method: 'POST',
      data: params,
  });
};


//获取团队管理员
export async function searchLeadUserByProject(params) {
  return request({
      url: `zituo-admin/a/platform/teamManager/searchLeadUserByProject`,
      method: 'GET',
      data: params,
  });
};

//获取团队成员
export async function searchUserByProject(params) {
  return request({
      url: `zituo-admin/a/platform/teamManager/searchUserByProject`,
      method: 'GET',
      data: params,
  });
};
//验证token
export async function verifyCodeFun(){
  return verifyToken();
}